const type = '1';
let api, wx, url, redirectUri;

if (type === '2') { // 测试
    api = {
        host: '/p/10/0/5/164/6888/ormrpc/RestServer',
        // host: 'http://10.0.5.164:6888/ormrpc/RestServer',
        bzhost: '/p/10/75/1/215/8080',
        bzImg: '/p/10/75/1/215/8080/operation/upload/',
        helphost: '/vank/'
    };
    url = {
        K2Page: 'http://t1.vanke.com:6888/ksbxTest/#/sendK2',
        cbUrl: 'http://t1.vanke.com:6888/ksbxTest/#/caiBaoStep2'
    };
    redirectUri = 'http://t1.vanke.com:6888/grzxTest/#/login';
} else {
    api = {
        host: '/p/10/0/5/180/6888/ormrpc/RestServer', // 正式
        // host: 'http://10.0.5.180:6888/ormrpc/RestServer',
        bzhost: '/p/10/75/1/215/8080',
        bzImg: '/p/10/75/1/215/8080/operation/upload/',
        helphost: '/vank/'
    };
    url = {
        K2Page: 'http://t1.vanke.com:6888/ksbx/#/sendK2',
        cbUrl: 'http://t1.vanke.com:6888/#/caiBaoStep2'
    };
    redirectUri = 'http://t1.vanke.com:6888/#/login';
}

// 微信部分的配置
wx = {
    appid: 'wx45362d8e0247a7c7', // vanke
    agentid: '3',
    link: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx45362d8e0247a7c7&redirect_uri=' + encodeURIComponent(redirectUri) + '&response_type=code&scope=snsapi_userinfo&agentid=3&state=state#wechat_redirect',
    redirectUri
};
console.log(wx.link);
export default {
    type,
    api,
    wx,
    url
};
